package com.wm.blog_config.config;

import feign.RequestInterceptor;
import feign.RequestTemplate;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;

/***
 * @ClassName: CustomFeignConfig
 * @Description:  服务间调用携带Authorization请求头  todo   feign调用
 * @Author: wm_yu
 * @Create_time: 16:50 2020-3-26
 */
@Configuration
@Slf4j
public class CustomFeignConfig implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate requestTemplate) {
      log.info("feign调用添加请求头");
    }
}
